<template>
    <div class="mt-4">
        <el-input v-model="name" placeholder="请输入关键字" class="input-with-select">
            <template #append>
                <el-button @click="btn_loadbyname" :icon="Search" />
            </template>
        </el-input>
    </div>
</template>

<script setup>
import { Search } from '@element-plus/icons-vue'
import { storeToRefs } from "pinia";
import { useMyactivityStore } from "../../../stores/myactivity.js";
const myactivityStore = useMyactivityStore()
const { name } = storeToRefs(myactivityStore)
const btn_loadbyname = () => {
    myactivityStore.loadByName()
}
</script>